﻿using UnityEngine;using System.Collections;public class Trap : MonoBehaviour {	private Animator _animator;	// Use this for initialization	void Start () 	{		_animator = this.GetComponent<Animator>();	}		// Update is called once per frame	void Update () 	{		}	void OnTriggerEnter(Collider collider)	{		if(collider.tag == "Player")		{			_animator.SetBool("IsTriggerEnter", true);			GlobalManager.GameOver();			Debug.Log("OnTriggerEnter You die");		}	}}